public class SODoc extends ArDkDoc
Modifier and Type | Class and Description |
---|---|
static class |
SODoc.HorizontalAlignment |
class |
SODoc.SOSelectionContext
Selection context data.
|
static class |
SODoc.VerticalAlignment |
mNumPages, SmartOfficeCmd_DocEnd, SmartOfficeCmd_DocStart, SmartOfficeCmd_Down, SmartOfficeCmd_Left, SmartOfficeCmd_LineEnd, SmartOfficeCmd_LineStart, SmartOfficeCmd_Right, SmartOfficeCmd_SelectionCharBack, SmartOfficeCmd_SelectionCharForward, SmartOfficeCmd_SelectionDocEnd, SmartOfficeCmd_SelectionDocStart, SmartOfficeCmd_SelectionLineDown, SmartOfficeCmd_SelectionLineEnd, SmartOfficeCmd_SelectionLineStart, SmartOfficeCmd_SelectionLineUp, SmartOfficeCmd_Up
Modifier | Constructor and Description |
---|---|
protected |
SODoc(long internal)
Private constructor called from the JNI.
|
Modifier and Type | Method and Description |
---|---|
void |
abortLoad()
Abort loading of a document.
|
void |
acceptTrackedChange() |
void |
addBlankPage(int pageNumber) |
void |
addColumnsLeft() |
void |
addColumnsRight() |
void |
addHighlightAnnotation() |
void |
addRowsAbove() |
void |
addRowsBelow() |
void |
adjustSelection(int startOffset,
int endOffset,
int updateHighlight)
Adjust the position of the selection
This does not alter or move any content within the document, but
just changes which part of the document is selected by applying
character-based offsets to both the start and end
|
boolean |
androidClipboardHasData(boolean clip_in_enabled)
is there data on the clipboard?
|
void |
androidSelectionCopyToClip(boolean clip_out_enabled)
copy current selection
|
void |
androidSelectionCutToClip(boolean clip_out_enabled)
cut current selection
|
void |
androidSelectionDelete()
delete current selection
|
void |
androidSelectionPaste(int pageNum,
boolean clip_in_enabled)
Paste takes a page number, but ignores it if there
is currently an appropriate selection to which to paste
|
void |
cancelSearch()
Cancel any outstanding search.
|
boolean |
canPrint() |
boolean |
canRedo() |
boolean |
canSave() |
boolean |
canUndo() |
void |
clearSelection()
Clear selection
|
boolean |
clipboardHasData() |
void |
closeSearch()
Close any outstanding search - clear any highlighted selection from
the screen.
|
void |
createESignatureAt(android.graphics.PointF point,
int page) |
void |
createInkAnnotation(int page,
SOPoint[] points,
float width,
int color) |
void |
createSignatureAt(android.graphics.PointF point,
int page) |
void |
createTextAnnotationAt(android.graphics.PointF point,
int page) |
void |
deleteChar()
Delete the character to the left of the caret.
|
void |
deleteColumns() |
void |
deleteHighlightAnnotation() |
void |
deletePage(int pageNumber) |
void |
deleteRows() |
void |
destroyDoc()
public function to destroy the document
|
boolean |
docSupportsDrawing() |
boolean |
docSupportsReview() |
void |
doRedo(java.lang.Runnable onDone) |
void |
doUndo(java.lang.Runnable onDone) |
void |
duplicatePage(int pageNumber) |
int |
enumerateToc(SOEnumerateTocListener listener) |
void |
exportTo(java.lang.String path,
SODocSaveListener listener,
java.lang.String exportFormat)
export to
|
protected void |
finalize() |
void |
forwardDeleteChar()
Delete the character to the right of the caret.
|
boolean |
getAnnotationCanBePlacedAtArbitraryPosition()
Determine if an annotation can be inserted regardless of the selection.
|
java.lang.String |
getAuthor() |
java.lang.String[] |
getBgColorList()
Get a list of the permitted background colors for this document.
|
java.lang.String |
getClipboardAsText() |
int |
getCurrentEdit()
Get the current position in the 'undo/redo' list
This value will be >= 0, and <= numEdits.
|
java.lang.String |
getDateFormatPattern() |
int |
getDocType()
Get the type of the document.
|
int |
getFlowMode() |
java.lang.String |
getFontList()
Get a list of the permitted fonts for this document.
|
boolean |
getHasBeenModified()
Determine if the document has been modified
|
int[] |
getIndentationLevel()
Get the current indentation level (at the caret position), and
what the maximum indentation level is at that point.
|
int |
getNumEdits()
Get the number of edits in the 'undo/redo' list.
|
ArDkPage |
getPage(int pageNumber,
SOPageListener listener)
Retrieve a specific page of the document.
|
java.lang.String |
getSelectedCellFormat() |
float |
getSelectedColumnWidth() |
android.graphics.RectF |
getSelectedObjectBounds()
Get the bounds of the current selected object, or null if no selection.
|
float |
getSelectedRowHeight() |
java.lang.String |
getSelectedTrackedChangeAuthor() |
java.lang.String |
getSelectedTrackedChangeComment() |
java.lang.String |
getSelectedTrackedChangeDate() |
int |
getSelectedTrackedChangeType() |
int |
getSelectionAlignment() |
int |
getSelectionAlignmentV() |
java.lang.String |
getSelectionAnnotationAuthor() |
java.lang.String |
getSelectionAnnotationComment() |
java.lang.String |
getSelectionAnnotationDate() |
ArDkBitmap |
getSelectionAsBitmap()
Get a bitmap representation of the current selection.
|
java.lang.String |
getSelectionAsText() |
java.lang.String |
getSelectionBackgroundColor()
Get the background color associated with the current selection.
|
boolean |
getSelectionCanBeAbsolutelyPositioned()
Determine if the current selection can be moved to an absolute
position in the document.
|
boolean |
getSelectionCanBeCopied()
Determine if the current selection can be cut, copied or dragged.
|
boolean |
getSelectionCanBeDeleted()
Determine if the current selection can be deleted.
|
boolean |
getSelectionCanBePasteTarget()
Determine if the current selection can be used as the target of a
paste or a drag.
|
boolean |
getSelectionCanBeResized()
Determine if the current selection can be resized.
|
boolean |
getSelectionCanBeRotated()
Determine if the current selection can be rotated.
|
boolean |
getSelectionCanCreateAnnotation()
Determine if an annotation can be created from the selection.
|
boolean |
getSelectionCanHaveBackgroundColorApplied()
Determine if the current selection can have it's background color
changed, for example the cell background color, or the fill color
in an autoshape.
|
boolean |
getSelectionCanHaveForegroundColorApplied()
Determine if the current selection can have it's foreground color
changed, for example the text color, or the line color in an autoshape.
|
boolean |
getSelectionCanHaveHorizontalAlignmentApplied()
Determine if the current selection can have its horizontal alignment
changed.
|
boolean |
getSelectionCanHavePictureInserted()
Determine if the current selection can have a picture/image inserted
into it.
|
boolean |
getSelectionCanHaveShapeInserted()
Determine if the current selection can have a shape inserted into it.
|
boolean |
getSelectionCanHaveTextAltered()
Determine if the current selection can have text inserted, modified or
deleted.
|
boolean |
getSelectionCanHaveTextStyleApplied()
Determine if the current selection can have fonts, text styles etc
applied to it.
|
boolean |
getSelectionCanHaveVerticalAlignmentApplied()
Determine if the current selection can have its vertical alignment
changed.
|
SODoc.SOSelectionContext |
getSelectionContext()
Obtain the context around the current selection.
|
java.lang.String |
getSelectionFillColor() |
java.lang.String |
getSelectionFontColor()
Get the text color associated with the current selection.
|
java.lang.String |
getSelectionFontName()
Get the font name associated with the current selection.
|
double |
getSelectionFontSize()
Determine the font size of the current selection.
|
boolean |
getSelectionHasAssociatedPopup()
Determine if the current selection has an associated popup [such as
an annotation].
|
boolean |
getSelectionIsAlterableAnnotation()
Determine if an annotation's content can be altered.
|
boolean |
getSelectionIsAlterableTextSelection()
Determine if the current selection is a text selection that can be
extended or contracted.
|
boolean |
getSelectionIsBold()
Determine if the current selection is bold.
|
boolean |
getSelectionIsItalic()
Determine if the current selection is italic.
|
boolean |
getSelectionIsLinethrough()
Determine if the current selection is linethrough.
|
boolean |
getSelectionIsTablePart()
Determine if the current selection is part of a table, so operations
such as row or column resize can be applied to it.
|
boolean |
getSelectionIsUnderlined()
Determine if the current selection is underlined.
|
java.lang.String |
getSelectionLineColor() |
int |
getSelectionLineType() |
float |
getSelectionLineWidth() |
boolean |
getSelectionListStyleIsDecimal()
Determine if the current selection list style decimal.
|
boolean |
getSelectionListStyleIsDisc()
Determine if the current selection list style disc.
|
boolean |
getSelectionListStyleIsNone()
Determine if the current selection list style none.
|
android.graphics.PointF |
getSelectionNaturalDimensions() |
boolean |
getSelectionPermitsInlineTextEntry()
Determine if the current selection can accept direct text entry [i.e.
|
float |
getSelectionRotation() |
boolean |
getShowingTrackedChanges() |
boolean |
getTableCellsMerged() |
boolean |
getTrackingChanges() |
boolean |
hasAcroForm() |
boolean |
hasXFAForm() |
void |
insertAutoShape(int pageNum,
java.lang.String shape,
java.lang.String properties)
Insert a given AutoShape with the given properties in the centre of
the given page.
|
void |
insertAutoShape(int pageNum,
java.lang.String shape,
java.lang.String properties,
float x,
float y)
Insert a given AutoShape with the given properties at a given point on the given page.
|
void |
insertImage(int pageNum,
java.lang.String imagePath)
Insert a given image into the center of the given page.
|
void |
insertImage(java.lang.String imagePath)
Insert a given image, overwriting the current selection.
|
SOLinkData |
interpretLinkUrl(java.lang.String url) |
boolean |
isSavable() |
boolean |
isSearchRunning()
Tell the caller if a search is running.
|
boolean |
isSelectionInkAnnotation() |
void |
movePage(int pageNumber,
int newNumber) |
void |
moveTableSelectionDown() |
void |
moveTableSelectionLeft() |
void |
moveTableSelectionRight() |
void |
moveTableSelectionUp() |
boolean |
nextTrackedChange() |
void |
onDeleteKey() |
void |
onForwardDeleteKey() |
boolean |
previousTrackedChange() |
void |
processKeyCommand(int command) |
boolean |
providePassword(java.lang.String password) |
void |
rejectTrackedChange() |
void |
saveTo(java.lang.String path,
SODocSaveListener listener)
Start a save operation.
|
void |
saveToPDF(java.lang.String path,
boolean imagePerPage,
SODocSaveListener listener)
export to PDF
|
int |
search()
Start (or restart) a search.
|
void |
selectionCopyToClip() |
void |
selectionCutToClip() |
void |
selectionDelete()
JNI wrappers for SmartOfficeLib cut/copy/paste functions
these are used below.
|
boolean |
selectionIsAutoshapeOrImage() |
boolean |
selectionIsReviewable() |
void |
selectionPaste(int pageNum) |
SOSelectionTableRange |
selectionTableRange() |
boolean |
setAuthor(java.lang.String author) |
void |
setClipboardFromText(java.lang.String text) |
void |
setCurrentEdit(int edit)
Set the current position in the 'undo/redo' list
This value should be >= 0, and <= numEdits.
|
void |
setFlowMode(int mode,
float width,
float height) |
void |
setFlowModeInternal(int mode,
float width,
float height) |
void |
setForceReload(boolean force) |
void |
setForceReloadAtResume(boolean force) |
void |
setIndentationLevel(int level)
Set the indentation at the current caret position
The value should be >= 0 and <= maxIndentationLevel.
|
void |
setOpenedPath(java.lang.String path) |
void |
setSearchBackwards(boolean backwards)
Set whether the next search operation should search backwards.
|
void |
setSearchListener(SOSearchListener listener)
Set a listener for the next search operation.
|
void |
setSearchMatchCase(boolean matchCase)
Set whether the next search operation should use case sensitive matching.
|
void |
setSearchStart(int page,
float x,
float y)
Set the point that the next start should search from.
|
void |
setSearchStart(int page,
android.graphics.PointF xy)
Set the point that the next start should search from.
|
void |
setSearchString(java.lang.String text)
Set the string to search for.
|
void |
setSelectedCellFormat(java.lang.String cellFormat) |
void |
setSelectedColumnWidth(float value) |
void |
setSelectedObjectBounds(float l,
float t,
float r,
float b)
Set the bounds of the current selected object.
|
void |
setSelectedObjectBounds(android.graphics.RectF bounds)
Set the bounds of the current selected object.
|
void |
setSelectedObjectPosition(float x,
float y)
Set the position of the current selected object.
|
void |
setSelectedObjectPosition(android.graphics.PointF pos)
Set the position of the current selected object.
|
void |
setSelectedRowHeight(float value) |
void |
setSelectionAlignment(int alignment) |
void |
setSelectionAlignmentV(int alignment) |
void |
setSelectionAnnotationComment(java.lang.String comment) |
void |
setSelectionArrangeBack() |
void |
setSelectionArrangeBackwards() |
void |
setSelectionArrangeForwards() |
void |
setSelectionArrangeFront() |
void |
setSelectionBackgroundColor(java.lang.String color)
Set the background color for the current selection.
|
void |
setSelectionBackgroundTransparent()
Set the background color to transparent for the current selection.
|
void |
setSelectionFillColor(java.lang.String color) |
void |
setSelectionFontColor(java.lang.String fontcolor)
Set the fontcolor to use for the current selection.
|
void |
setSelectionFontName(java.lang.String fontname)
Set the fontname to use for the current selection.
|
void |
setSelectionFontSize(double points)
Set the font size of the current selection.
|
void |
setSelectionInkColor(int color) |
void |
setSelectionInkThickness(float width) |
void |
setSelectionIsBold(boolean isBold)
Set the current selection to be bold (or not).
|
void |
setSelectionIsItalic(boolean isItalic)
Set the current selection to be italic (or not).
|
void |
setSelectionIsLinethrough(boolean isLinethrough)
Set the current selection to be line-through (or not).
|
void |
setSelectionIsUnderlined(boolean isUnderlined)
Set the current selection to be underlined (or not).
|
void |
setSelectionLineColor(java.lang.String color) |
void |
setSelectionLineType(int type) |
void |
setSelectionLineWidth(float width) |
void |
setSelectionListStyleDecimal()
Set the list style to decimal for the current selection.
|
void |
setSelectionListStyleDisc()
Set the list style to disc for the current selection.
|
void |
setSelectionListStyleNone()
Set the list style to none for the current selection.
|
void |
setSelectionRotation(float angle) |
void |
setSelectionText(java.lang.String text)
Alter the text of the current selection (if any).
|
void |
setShowingTrackedChanges(boolean show) |
void |
setTableCellsMerged(boolean tableCellsMerged) |
void |
setTrackingChanges(boolean track) |
addPage, destroyPages, getNumPages, getSelectionEndPage, getSelectionStartPage, removePage, removePageAt, setModified, setSelectionEndPage, setSelectionStartPage
public final int DocType_Error
public final int DocType_XLS
public final int DocType_XLSX
public final int DocType_PPT
public final int DocType_PPTX
public final int DocType_DOC
public final int DocType_DOCX
public final int DocType_PDF
public final int DocType_Other
public static final int SOTextAlign_Left
public static final int SOTextAlign_Center
public static final int SOTextAlign_Right
public static final int SOTextAlign_Justify
public static final int SOTextAlignV_Top
public static final int SOTextAlignV_Center
public static final int SOTextAlignV_Bottom
public static final int FLOW_MODE_NORMAL
public static final int FLOW_MODE_REFLOW
public static final int FLOW_MODE_RESIZE
public static final int SmartOfficeTrackedChangeType_NoChange
public static final int SmartOfficeTrackedChangeType_DeletedText
public static final int SmartOfficeTrackedChangeType_InsertedText
public static final int SmartOfficeTrackedChangeType_InsertedParagraph
public static final int SmartOfficeTrackedChangeType_InsertedTableCell
public static final int SmartOfficeTrackedChangeType_InsertedTableRow
public static final int SmartOfficeTrackedChangeType_ChangedParagraphProperties
public static final int SmartOfficeTrackedChangeType_ChangedRunProperties
public static final int SmartOfficeTrackedChangeType_ChangedSectionProperties
public static final int SmartOfficeTrackedChangeType_ChangedTableRowProperties
public static final int SmartOfficeTrackedChangeType_ChangedTableCellProperties
public static final int SmartOfficeTrackedChangeType_ChangedTableProperties
public static final int SmartOfficeTrackedChangeType_ChangedTableGrid
protected SODoc(long internal)
internal
- C pointer cast to a long.public boolean getHasBeenModified()
getHasBeenModified
in class ArDkDoc
public boolean isSavable()
public void clearSelection()
clearSelection
in class ArDkDoc
public boolean getSelectionCanHaveTextStyleApplied()
public boolean getSelectionCanHaveTextAltered()
public boolean getSelectionCanBeCopied()
public boolean getSelectionCanBePasteTarget()
public boolean getSelectionCanBeAbsolutelyPositioned()
getSelectionCanBeAbsolutelyPositioned
in class ArDkDoc
public boolean getSelectionCanBeResized()
getSelectionCanBeResized
in class ArDkDoc
public boolean getSelectionIsTablePart()
public boolean getSelectionCanHaveForegroundColorApplied()
public boolean getSelectionCanHaveBackgroundColorApplied()
public boolean getSelectionCanHaveHorizontalAlignmentApplied()
public boolean getSelectionCanHaveVerticalAlignmentApplied()
public boolean getSelectionCanHavePictureInserted()
public boolean getSelectionCanHaveShapeInserted()
public boolean getSelectionCanBeRotated()
getSelectionCanBeRotated
in class ArDkDoc
public boolean getSelectionIsAlterableTextSelection()
getSelectionIsAlterableTextSelection
in class ArDkDoc
public boolean getSelectionPermitsInlineTextEntry()
public boolean getSelectionHasAssociatedPopup()
getSelectionHasAssociatedPopup
in class ArDkDoc
public boolean getSelectionCanCreateAnnotation()
getSelectionCanCreateAnnotation
in class ArDkDoc
public boolean getSelectionCanBeDeleted()
getSelectionCanBeDeleted
in class ArDkDoc
public boolean getAnnotationCanBePlacedAtArbitraryPosition()
public boolean getSelectionIsAlterableAnnotation()
public java.lang.String getSelectionFontName()
public java.lang.String getSelectionFontColor()
public java.lang.String getSelectionBackgroundColor()
public void setSelectionFontName(java.lang.String fontname)
fontname
- fontname to use. Must be one of those returned by
getFontList.public void setSelectionFontColor(java.lang.String fontcolor)
fontcolor
- fontcolor to use. Of the form #rrggbbpublic void setSelectionBackgroundColor(java.lang.String color)
color
- color to use. Of the form #rrggbbpublic void setSelectionBackgroundTransparent()
public boolean getSelectionIsBold()
public void setSelectionIsBold(boolean isBold)
isBold
- true if the current selection should be bold,
false otherwise.public boolean getSelectionIsLinethrough()
public void setSelectionIsLinethrough(boolean isLinethrough)
isLinethrough
- true if the current selection should be Linethrough,
false otherwise.public boolean getSelectionIsItalic()
public void setSelectionIsItalic(boolean isItalic)
isItalic
- true if the current selection should italic,
false otherwise.public boolean getSelectionIsUnderlined()
public void setSelectionIsUnderlined(boolean isUnderlined)
isUnderlined
- true if the current selection should be underlined,
false otherwise.public double getSelectionFontSize()
public void setSelectionFontSize(double points)
points
- the font size to use for the current selection.public void setSelectionText(java.lang.String text)
text
- the text to replace the current selection with.public void adjustSelection(int startOffset, int endOffset, int updateHighlight)
startOffset
- the offset to apply to the start of the selectionendOffset
- the offset to apply to the end of the selectionupdateHighlight
- whether to update the selection highlightpublic SODoc.SOSelectionContext getSelectionContext()
public void forwardDeleteChar()
public void deleteChar()
public java.lang.String getFontList()
public java.lang.String[] getBgColorList()
public ArDkPage getPage(int pageNumber, SOPageListener listener)
getPage
in class ArDkDoc
pageNumber
- Page number to retrieve (0 <= pageNumber < numPages)listener
- Listener object to track loading/interpretation of
page.public void saveTo(java.lang.String path, SODocSaveListener listener)
public void exportTo(java.lang.String path, SODocSaveListener listener, java.lang.String exportFormat)
public void saveToPDF(java.lang.String path, boolean imagePerPage, SODocSaveListener listener)
public void abortLoad()
public int getNumEdits()
getNumEdits
in class ArDkDoc
public int getCurrentEdit()
getCurrentEdit
in class ArDkDoc
public void setCurrentEdit(int edit)
edit
- new position in the 'undo/redo' list to sync the
document to.public int[] getIndentationLevel()
public void setIndentationLevel(int level)
level
- the indentation level to use at the current caret
position.public android.graphics.RectF getSelectedObjectBounds()
public void setSelectedObjectBounds(android.graphics.RectF bounds)
setSelectedObjectBounds
in class ArDkDoc
bounds
- the bounds of the current selected object.public void setSelectedObjectBounds(float l, float t, float r, float b)
l
- left hand boundt
- top boundr
- right hand boundb
- bottom boundpublic void setSelectedObjectPosition(android.graphics.PointF pos)
pos
- position to set for the current selected object.public void setSelectedObjectPosition(float x, float y)
x
- x position to set for the current selected objecty
- y position to set for the current selected objectpublic void cancelSearch()
cancelSearch
in class ArDkDoc
public void closeSearch()
closeSearch
in class ArDkDoc
public boolean isSearchRunning()
isSearchRunning
in class ArDkDoc
public void setSearchStart(int page, android.graphics.PointF xy)
setSearchStart
in class ArDkDoc
page
- Page to start the next search fromxy
- Position on page to start the next search frompublic void setSearchStart(int page, float x, float y)
setSearchStart
in class ArDkDoc
page
- Page to start the next search fromx
- X position on page to start the next search fromy
- Y position on page to start the next search frompublic void setSearchString(java.lang.String text)
setSearchString
in class ArDkDoc
text
- Search text to use in the next search operation.public void setSearchMatchCase(boolean matchCase)
setSearchMatchCase
in class ArDkDoc
matchCase
- true if the next search should be case sensitive,
false otherwise.public void setSearchBackwards(boolean backwards)
setSearchBackwards
in class ArDkDoc
backwards
- true if the next search should be backwards,
false otherwise.public void setSearchListener(SOSearchListener listener)
setSearchListener
in class ArDkDoc
listener
- the listener object to use for results from the next
search operation.public int search()
public void insertImage(java.lang.String imagePath)
imagePath
- file path of the image to insert.public void insertImage(int pageNum, java.lang.String imagePath)
pageNum
- the page to insert into.imagePath
- file path of the image to insert.public void insertAutoShape(int pageNum, java.lang.String shape, java.lang.String properties)
pageNum
- the page to insert into.shape
- shape to insert. Possible values are: TextBox, Line,
Rect, RoundRect, Ellipse, Triangle, RtTriangle,
Arrow, LeftRightArrow, Diamond, WedgeEllipseCallout,
WedgeRectCallout, Pentagon or Star.properties
- A string of properties to apply. Can be null. A
common case is to supply a TextBox with property
fill-color:transparent, or a Line with property
end-decoration:"arrow" to add an arrow head to
the end.public void insertAutoShape(int pageNum, java.lang.String shape, java.lang.String properties, float x, float y)
pageNum
- the page to insert into.shape
- shape to insert. Possible values are: TextBox, Line,
Rect, RoundRect, Ellipse, Triangle, RtTriangle,
Arrow, LeftRightArrow, Diamond, WedgeEllipseCallout,
WedgeRectCallout, Pentagon or Star.properties
- A string of properties to apply. Can be null. A
common case is to supply a TextBox with property
fill-color:transparent, or a Line with property
end-decoration:"arrow" to add an arrow head to
the end.x
- x position for shape.y
- y position for shape.public ArDkBitmap getSelectionAsBitmap()
public int getDocType()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void destroyDoc()
destroyDoc
in class ArDkDoc
public void setSelectionListStyleNone()
public void setSelectionListStyleDecimal()
public void setSelectionListStyleDisc()
public boolean getSelectionListStyleIsDisc()
public boolean getSelectionListStyleIsDecimal()
public boolean getSelectionListStyleIsNone()
public void setSelectionAlignment(int alignment)
public void setSelectionAlignmentV(int alignment)
public int getSelectionAlignment()
public int getSelectionAlignmentV()
public void selectionDelete()
selectionDelete
in class ArDkDoc
public void selectionCutToClip()
public void selectionCopyToClip()
public boolean clipboardHasData()
public void selectionPaste(int pageNum)
public java.lang.String getClipboardAsText()
public void setClipboardFromText(java.lang.String text)
public void androidSelectionDelete()
public void androidSelectionCutToClip(boolean clip_out_enabled)
public void androidSelectionCopyToClip(boolean clip_out_enabled)
public boolean androidClipboardHasData(boolean clip_in_enabled)
public void androidSelectionPaste(int pageNum, boolean clip_in_enabled)
public void addBlankPage(int pageNumber)
public void deletePage(int pageNumber)
public void movePage(int pageNumber, int newNumber)
public void duplicatePage(int pageNumber)
public void addRowsAbove()
public void addRowsBelow()
public void addColumnsLeft()
public void addColumnsRight()
public void deleteRows()
public void deleteColumns()
public java.lang.String getSelectionAsText()
getSelectionAsText
in class ArDkDoc
public SOSelectionTableRange selectionTableRange()
public void moveTableSelectionUp()
public void moveTableSelectionDown()
public void moveTableSelectionLeft()
public void moveTableSelectionRight()
public float getSelectedRowHeight()
public float getSelectedColumnWidth()
public void setSelectedRowHeight(float value)
public void setSelectedColumnWidth(float value)
public boolean getTableCellsMerged()
public void setTableCellsMerged(boolean tableCellsMerged)
public java.lang.String getSelectedCellFormat()
public void setSelectedCellFormat(java.lang.String cellFormat)
public int getFlowMode()
public void setFlowMode(int mode, float width, float height)
public void setFlowModeInternal(int mode, float width, float height)
public android.graphics.PointF getSelectionNaturalDimensions()
public float getSelectionRotation()
public void setSelectionRotation(float angle)
public void setSelectionArrangeForwards()
public void setSelectionArrangeFront()
public void setSelectionArrangeBackwards()
public void setSelectionArrangeBack()
public void setSelectionFillColor(java.lang.String color)
public java.lang.String getSelectionFillColor()
public void setSelectionLineColor(java.lang.String color)
public java.lang.String getSelectionLineColor()
public float getSelectionLineWidth()
public void setSelectionLineWidth(float width)
public int getSelectionLineType()
public void setSelectionLineType(int type)
public void createInkAnnotation(int page, SOPoint[] points, float width, int color)
createInkAnnotation
in class ArDkDoc
public void addHighlightAnnotation()
addHighlightAnnotation
in class ArDkDoc
public void deleteHighlightAnnotation()
deleteHighlightAnnotation
in class ArDkDoc
public void createTextAnnotationAt(android.graphics.PointF point, int page)
createTextAnnotationAt
in class ArDkDoc
public void createSignatureAt(android.graphics.PointF point, int page)
createSignatureAt
in class ArDkDoc
public void createESignatureAt(android.graphics.PointF point, int page)
createESignatureAt
in class ArDkDoc
public java.lang.String getSelectionAnnotationAuthor()
getSelectionAnnotationAuthor
in class ArDkDoc
public java.lang.String getSelectionAnnotationDate()
getSelectionAnnotationDate
in class ArDkDoc
public java.lang.String getSelectionAnnotationComment()
getSelectionAnnotationComment
in class ArDkDoc
public void setSelectionAnnotationComment(java.lang.String comment)
setSelectionAnnotationComment
in class ArDkDoc
public boolean providePassword(java.lang.String password)
providePassword
in class ArDkDoc
public boolean docSupportsReview()
public boolean docSupportsDrawing()
public boolean setAuthor(java.lang.String author)
public boolean getTrackingChanges()
public void setTrackingChanges(boolean track)
public boolean getShowingTrackedChanges()
public void setShowingTrackedChanges(boolean show)
public boolean selectionIsReviewable()
public boolean nextTrackedChange()
public boolean previousTrackedChange()
public void acceptTrackedChange()
public void rejectTrackedChange()
public java.lang.String getSelectedTrackedChangeAuthor()
public java.lang.String getSelectedTrackedChangeDate()
public java.lang.String getSelectedTrackedChangeComment()
public int getSelectedTrackedChangeType()
public boolean selectionIsAutoshapeOrImage()
public void processKeyCommand(int command)
processKeyCommand
in class ArDkDoc
public int enumerateToc(SOEnumerateTocListener listener)
public SOLinkData interpretLinkUrl(java.lang.String url)
public void onForwardDeleteKey()
public void onDeleteKey()
public boolean hasXFAForm()
hasXFAForm
in class ArDkDoc
public boolean hasAcroForm()
hasAcroForm
in class ArDkDoc
public java.lang.String getDateFormatPattern()
getDateFormatPattern
in class ArDkDoc
public void setOpenedPath(java.lang.String path)
setOpenedPath
in class ArDkDoc
public void setForceReload(boolean force)
setForceReload
in class ArDkDoc
public void setForceReloadAtResume(boolean force)
setForceReloadAtResume
in class ArDkDoc
public boolean isSelectionInkAnnotation()
isSelectionInkAnnotation
in class ArDkDoc
public void setSelectionInkColor(int color)
setSelectionInkColor
in class ArDkDoc
public void setSelectionInkThickness(float width)
setSelectionInkThickness
in class ArDkDoc